package com.iwhalecloud.bss.kite.cucc.web.controller.opp;

import com.iwhalecloud.bss.kite.cucc.service.inf.InfServiceBus;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Description:获取运营方下运营专员
 * File Name:OperationsSpecialistController
 * Modification History:
 * Date             Author      Version     Description
 * ------------------------------------------------------------------
 * 2021-4-8 14:14   邱萌         1.0       1.0 Version
 **/
@RestController
@RequestMapping("/opeInfo")
@Api(tags = {"/opeInfo - 获取运营方下运营专员查询展示页"})
public class OperationsSpecialistController {

    @Autowired
    private InfServiceBus infServiceBus;

    @ApiOperation(value = "查询运营专员列表", notes = "查询运营专员列表")
    @ApiImplicitParams({
        @ApiImplicitParam(name = "carrierId", value = "运营方编码")
    })
    @GetMapping("/list")
    public List<String> list(String  carrierId) {
        Map map=new HashMap();
        map.put("carrierId",carrierId);
        List<String> list = infServiceBus.queryOpeList(map);
        return list;
    }
}
